<!doctype html>
<html><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1">
<title>体温单列表</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/mobile/jquery.mobile-1.4.0.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/mobile/zpdydhl_mobile.css">
<script src="__PUBLIC__/js/mobile/jquery-1.8.3.min.js"></script>
<script src="__PUBLIC__/js/mobile/jquery.mobile-1.4.0.min.js"></script>
<script src="__PUBLIC__/js/mobile/zpdydhl_mobeil.js"></script>
<style type="text/css">
        /*加载loding*/
        .spinner {
          margin: 5px auto 0;
          width: 150px;
          text-align: center;
          position: fixed;
        }

        .spinner > div {
          width: 20px;
          height: 20px;
          background-color: #67CF22;

          border-radius: 100%;
          display: inline-block;
          -webkit-animation: bouncedelay 1.4s infinite ease-in-out;
          animation: bouncedelay 1.4s infinite ease-in-out;
          /* Prevent first frame from flickering when animation starts */
          -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
        }

        .spinner .bounce1 {
          -webkit-animation-delay: -0.32s;
          animation-delay: -0.32s;
        }

        .spinner .bounce2 {
          -webkit-animation-delay: -0.16s;
          animation-delay: -0.16s;
        }

        @-webkit-keyframes bouncedelay {
          0%, 80%, 100% { -webkit-transform: scale(0.0) }
          40% { -webkit-transform: scale(1.0) }
        }

        @keyframes bouncedelay {
          0%, 80%, 100% {
            transform: scale(0.0);
            -webkit-transform: scale(0.0);
          } 40% {
            transform: scale(1.0);
            -webkit-transform: scale(1.0);
          }
        }
        /*end*/
    </style>
</head>
<body>
<div data-role="page" data-theme="c">

    <div class="ui-content" style="padding:0px;">
        <table class="huanzhe_sancedan_table">
          <tr>
            <td style="width:22%">住院周次</td>
            <td>住院日期</td>
            <td>备注</td>
          </tr>
        </table>
        <table class="huanzhe_sancedan_content_table">

          <tr href="__URL__/showSancedan/zhuyuan_id/{$zhuyuan_id}/count/{$search_result.count}/week_begin/{$search_result.week_begin}/week_end/{$search_result.week_end}">
            <td style="width:22%"></td>
            <td></td>
            <td style="width:22%"></td>
          </tr>
        </table>
    </div>

    <!-- <div data-role="footer" data-position="fixed" class="footer_list"  data-tap-toggle="false" data-theme="b">
        <ul>
            <li><a class="hlink" href="#" hlink="page/Patient/showPatientZhuyuanDetail.html" data-ajax="false"><img src="../../css/images/bl_hover.png"></a></li>
            <li><a class="hlink" href="#" hlink="page/Patient/showPatientZhenduan.html" data-ajax="false"><img src="../../css/images/jy.png"></a></li>
            <li><a class="hlink" href="#" hlink="page/Patient/showYizhuChangqi.html" data-ajax="false"><img src="../../css/images/yz.png"></a></li>
            <li><a class="hlink" href="#" hlink="page/Patient/showTizhengList.html" data-ajax="false"><img src="../../css/images/tz.png"></a></li>
            <li><a class="hlink" href="#" hlink="page/Patient/showTiwendanList.html" data-ajax="false"><img src="../../css/images/jc.png"></a></li>
        </ul>
    </div> -->
    <script type="text/javascript">
        $(function(){
            //setHeader();
            temp_search_list = null;
            $.ajax({
                type: "get",
                async: true,
                url:server_url+"Mobile/Tizheng/showTiwendanListJson/zhuyuan_id/"+patient_info_global.zhuyuan_id+yiyuan_id,
                data:{},
                dataType: "jsonp",
                jsonp: "callbackShowTiwendanListJson",
                jsonpCallback:"feedBackStateShowTiwendanListJson",
                error:function(mes)
                {
                    alert("请求失败，请稍后重试");
                },
                beforeSend: loading,
                success: function(result) {
                    if(result.ret == "success"){
                        temp_search_list = result.data.search_result;
                        str = '';
                        for (var i = 1; i < result.data.search_result.length; i++) {
                            str+='<tr class="sanceDanlink" href="#" hlink="../tizheng/showSancedan.html" id="'+i+'"><td style="width:22%">'+result.data.search_result[i].zhouci+'</td><td>'+result.data.search_result[i].zhouciriqi+'</td><td style="width:22%">';

                            if(result.data.search_result[i].beizhu != null){
                                str+=result.data.search_result[i].beizhu;
                            }
                            str+='</td></tr>';
                        };
                        $('.huanzhe_sancedan_content_table').html(str);
                        $(".sanceDanlink").on("click",function(){
                            var hlink = $(this).attr("hlink");
                            sancedan_dayin_riqi_global = temp_search_list[$(this).attr("id")];
                            sancedan_pre_page = app_path+"page/Patient/showTiwendanList.html";
                            $.mobile.changePage(hlink,{transition: "none", reverse:false},false);
                        });
                        /*加载loding消失*/
                        $('#m').remove();
                        $('#lo').remove();
                        /*end*/
                    }
                }
            });
        })
        $(".hlink").die().live("click",function(){
              var hlink = $(this).attr("hlink");
              $.mobile.changePage(app_path+hlink,{transition: "none", reverse:false},false);
        });

        $(".back_home").die().live("click",function(){
            $.mobile.changePage(app_path+"page/System/showMobileSystem.html",{transition: "none", reverse:false},false);
        });
    </script>
</div>
</body>
</html>
